include(../../Twitwar.pri)

TEMPLATE	=	lib
DEFINES		+=	TWITWAR_UTILS_LIB
INCLUDEPATH	+=	..

CONFIG(debug,debug|release) { 
	TARGET	=	TwitWarUtilsd
	DESTDIR	=	../../Debug
}
else { 
	TARGET	=	TwitWarUtils
	DESTDIR	=	../../Release
}

HEADERS	+=	AES.h \
    ui/AdvancedTextBrowser.h \
    ui/AdvancedLabel.h
HEADERS	+=	PluginsKeySecret.h
HEADERS	+=	InfoEncrypter.h
HEADERS	+=	QxtJson.h
HEADERS	+=	QxtGlobal.h
HEADERS	+=	CrytoHash.h
HEADERS	+=	OAuthClient.h
HEADERS	+=	utils_global.h
HEADERS	+=	OAuthClient_p.h
HEADERS	+=	QxtGlobalShortcut.h
HEADERS	+=	QxtGlobalShortcut_p.h
HEADERS	+=	ui/ResizeHandle.h
HEADERS	+=	ui/UserIconLabel.h
HEADERS	+=	ui/PixmapTextObject.h
HEADERS	+=	ui/ShortCutLineEdit.h
HEADERS	+=	ui/OAuthVerifyDialog.h
HEADERS	+=	ui/CustomWindowDecoration.h

SOURCES	+=	AES.cpp \
    ui/UserIconLabel.cpp \
    ui/AdvancedTextBrowser.cpp \
    ui/AdvancedLabel.cpp
SOURCES	+=	InfoEncrypter.cpp
SOURCES	+=	QxtJson.cpp
SOURCES	+=	CrytoHash.cpp
SOURCES	+=	OAuthClient.cpp
SOURCES	+=	QxtGlobalShortcut.cpp
SOURCES	+=	ui/ResizeHandle.cpp
SOURCES	+=	ui/OAuthVerifyDialog.cpp
SOURCES	+=	ui/PixmapTextObject.cpp
SOURCES	+=	ui/ShortCutLineEdit.cpp
SOURCES	+=	ui/CustomWindowDecoration.cpp

win32:SOURCES		+=	QxtGlobalShortcut_win.cpp
win32-msvc2008:LIBS += -luser32

contains( DEFINES, HACK_470_HTTPS) {
	RESOURCES	+=	UtilsResource.qrc
}
